package mc.support.taobao.api;

import com.taobao.api.TaobaoRequest;
import com.taobao.api.request.VasSubscribeGetRequest;
import com.taobao.api.response.VasSubscribeGetResponse;

/**
 * Created with IntelliJ IDEA. <br/>
 * Author: wangming Yun    <br/>
 * Date: 2014-01-03  <br/>
 */
public class GetVasSubscribeReq extends AbstractReq<GetVasSubscribeReq, VasSubscribeGetResponse> {

    private String nick;
    private String articleCode;

    public GetVasSubscribeReq nick(String nick) {
        this.nick = nick;
        return this;
    }

    public GetVasSubscribeReq articleCode(String articleCode) {
        this.articleCode = articleCode;
        return this;
    }
    @Override
    protected TaobaoRequest toRequest() {
        VasSubscribeGetRequest  req = new VasSubscribeGetRequest();
        if (null != nick) {
            req.setNick(nick);
        }
        if (null != articleCode) {
            req.setArticleCode(articleCode);
        }
        return req;
    }
}
